﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Justin/Master/Site.Master"
    AutoEventWireup="true" CodeBehind="ArticleList.aspx.cs" Inherits="LinkCard.CustomerView.ArticleList" %>

<%@ Import Namespace="LinkCard.Utils" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        function setValue(page) {
            location.href = '/tin-tuc-<%=nCategoryID%>/m-3/<%=sCateNameRewrite %>.html?page=' + page;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctph" runat="server">
    <ul class="sub-menu">
        <li><a href="/Default.aspx">Trang chủ &gt;</a></li>
        <li>
            <span  class="navigationbar"><asp:Label ID="msgCate" runat="server"></asp:Label></span></li>
        <li runat="server" id="litag">
            &gt; Từ khóa: <asp:Literal runat="server" ID="ltkeyword"></asp:Literal></li>
    </ul>
    <div>
        <ul class="news-list">
            <asp:Repeater ID="msgList" runat="server">
                <ItemTemplate>
                    <li>
                        <div class="news-img">
                            <a href="/tin-tuc-<%# DataBinder.Eval(Container.DataItem, "MessageID")%>/m-3/c-<%# DataBinder.Eval(Container.DataItem, "CategoryID")%>/<%#LinkCard.Utils.Utilities.ConvertTextToUrl(DataBinder.Eval(Container.DataItem, "MsgTitle").ToString()) %>.html">
                                <%# DataBinder.Eval(Container.DataItem, "MsgHomeImage")%>
                            </a>
                        </div>
                        <div class="news-detail">
                            <h2>
                                <a href="/tin-tuc-<%# DataBinder.Eval(Container.DataItem, "MessageID")%>/m-3/c-<%# DataBinder.Eval(Container.DataItem, "CategoryID")%>/<%#LinkCard.Utils.Utilities.ConvertTextToUrl(DataBinder.Eval(Container.DataItem, "MsgTitle").ToString()) %>.html"
                                    title="<%# DataBinder.Eval(Container.DataItem, "MsgTitle")%>">
                                    <%# DataBinder.Eval(Container.DataItem, "MsgTitle")%></a>
                            </h2>
                            <p class="news-meta">
                                Ngày
                                <%# ConvertUtility.ToDateTime( DataBinder.Eval(Container.DataItem, "MsgTitle")).ToString("dd/MM/yyyy")%></p>
                            <p class="news-desc">
                                <%# DataBinder.Eval(Container.DataItem, "MsgLead")%>
                                <a href="/tin-tuc-<%# DataBinder.Eval(Container.DataItem, "MessageID")%>/m-3/c-<%# DataBinder.Eval(Container.DataItem, "CategoryID")%>/<%#LinkCard.Utils.Utilities.ConvertTextToUrl(DataBinder.Eval(Container.DataItem, "MsgTitle").ToString()) %>.html"
                                    class="view-more">(xem thêm)</a></p>
                        </div>
                    </li>
                    <li style="background: none; padding-bottom: 10px;"></li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    <div style="clear: both; height: 20px;">
    </div>
    <div id="msgNoData" runat="server" style="text-align: center">
        Không có tin, bài nào!
    </div>
    <div class="pagination" id="divPager" runat="server">
        <asp:Literal ID="PagerShow" runat="server"></asp:Literal>
    </div>
</asp:Content>
